package nl.hanze.designpatterns.mvc.gui;

import java.awt.Dimension;

import nl.hanze.designpatterns.mvc.controller.LoginController;
import nl.hanze.designpatterns.mvc.model.LoginModel;
import nl.hanze.designpatterns.mvc.view.LoginFormView;

public class LoginGUI extends GUI {
	
	private LoginController loginController;
	private LoginModel loginModel;
	private LoginFormView loginFormView;
	
	public LoginGUI(){
		
		loginModel = new LoginModel();
		loginController = new LoginController(loginModel);
		loginFormView = new LoginFormView(loginController, loginModel);
		
		this.setTitle("Login");
		
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.setResizable(false);
				
		this.add(loginFormView);
		
		this.pack();
		this.setLocationRelativeTo(null);
	}
}
